package com.example.oldkingdom.items;

import java.util.ArrayList;

import com.example.oldkingdom.base.worldObject;

public class item extends worldObject
{

	public static ArrayList<item> allItems = new ArrayList<item>(); 
	public static item paper = new item(0).setName("Paper");
	public static item apple = new itemEdible(1, 2, 1).setName("Apple");
    public item(int hash)
	{
		_hash = hash + _itemIdHash;
		allItems.add(this);
	}
	public item()
	{
		allItems.add(this);
	}
	public item setName(String name)
	{
		_name = name;
		return this;
	}

	
	public int getPlayerQuantity()
	{
		return _playerQuantity;
	}
	public item setPlayerQuantity(int q)
	{
		_playerQuantity = q;
		return this;
	}
	//public int getName 
	protected static int _itemIdHash = 500;
	protected int _hash = 0;
	protected int _playerQuantity = 0;
}
